package com.dreams.dream.service.impl;

import com.dreams.dream.dao.base.ReportInfoMapper;
import com.dreams.dream.pojo.base.Criteria;
import com.dreams.dream.pojo.base.ReportInfo;
import com.dreams.dream.service.ReportInfoService;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReportInfoServiceImpl implements ReportInfoService {
    @Autowired
    private ReportInfoMapper reportInfoMapper;

    private static final Logger logger = LoggerFactory.getLogger(ReportInfoServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.reportInfoMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public ReportInfo selectByPrimaryKey(String reportId) {
        return this.reportInfoMapper.selectByPrimaryKey(reportId);
    }

    public List<ReportInfo> selectByExample(Criteria example) {
        return this.reportInfoMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String reportId) {
        return this.reportInfoMapper.deleteByPrimaryKey(reportId);
    }

    public int updateByPrimaryKeySelective(ReportInfo record) {
        return this.reportInfoMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ReportInfo record) {
        return this.reportInfoMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.reportInfoMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(ReportInfo record, Criteria example) {
        return this.reportInfoMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(ReportInfo record, Criteria example) {
        return this.reportInfoMapper.updateByExample(record, example);
    }

    public int insert(ReportInfo record) {
        return this.reportInfoMapper.insert(record);
    }

    public int insertSelective(ReportInfo record) {
        return this.reportInfoMapper.insertSelective(record);
    }
}